home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
business
/
autorexx.lha
/
PlugIns
/
AddDate.rexx
next >
Wrap
OS/2 REXX Batch file
|
1996-12-28
|
848b
|
42 lines
/*
AddDate.rexx - DB PlugIn : Auto-Insert current date into DB field.
(c) 1996 Karl Mottram - Bifrost Industries
Started 1530 hrs - 03-12-96
Last Updated $VER: v1.1_(04-12-96) - Argument support
*/
Init:
CLS = "H" /* Clearscreen Command */
Signal On BREAK_C /* Break Trapping */
SpyFile = "LOGS:BioWare.log" /* For Expansion */
Parse Arg TagField OutField
OutField = Strip(OutField)
Options Results
WatchTrigger:
CURRENTFIELD TagField
GETFIELD TagField
CheckStatus:
If RESULT='0' | RESULT='' then do
ToDate = ''
Signal OutDate
end
FormatDate: /*YYYYmmDD*/
TDay = Right(Date(s),2) /* ||||==*/
TMon = Left(Right(Date(s),4),2) /* ||== */
TYar = Right(Left(Date(s),4),2) /* == */
ToDate = TDay||'-'||TMon||'-'||TYar
OutDate:
CURRENTFIELD OutField
PUTFIELD ToDate
Exzit:
Exit